import fly from '../utils/request'

export const getCode = (mobile) => {
  return fly.get(`/sms/codes/${mobile}`)
}

export const login = (data) => {
  return fly.post('/authorizations', data)
}

export const userInfo = () => {
  return fly.get('/user')
}

export const userDetail = (id) => {
  return fly.get('/articles/'+id)
}

export const userComment = (data) => {
  return fly.get('/comments',data)
}